Aspects of Enterprise Java Beans

نویسندگان

  • Gregory Blank
  • Gene Vayngrib
چکیده

Enterprise Java Beans (EJB), a specification for a Java component framework recently released by Sun Microsystems, immediately attracted attention of several major software vendors, including IBM, Oracle and Sybase. Analysts agree that EJB has a potential to replace CORBA as a standard for enterprise level applications. Aspect Oriented Programming fits naturally into EJB paradigm, but requires a few enhancements to be useful in this environment. Enterprise Java Beans EJB ties together other specs from Sun, including Java Transaction Service (JTS), Java Naming and Directory Interface (JNDI), Java Database Connectivity (JDBC) and Java Messaging Service (JMS). It can be seen as a modern version of CORBA, made more accessible through the use of a single language and modern component methodologies and patterns. A mapping to CORBA was released along with the very first version of EJB. The main concepts are: • EJB server • EJB container • EJ Beans • EJB JAR files • Deployment descriptors Accordingly, the following roles are differentiated for developers: • server provider • container provider • bean provider • bean deployer and assembler EJB server is a Java component/application server that houses containers and provides services to them: connection and thread management, etc. Containers house EJ beans and are able to take over transactions, persistence and security that the beans do not wish to handle themselves. Containers can be specialized for beans with special needs. The spec differentiates EJ beans of two types: non-persistent session beans and persistent entity beans, corresponding to records in a database, CICS transactions or other remote sources. EJB JAR file is a zip Java archive that provides an export/import standard for the EJ beans. Besides classes themselves it contains various meta-information files, including deployment descriptors, transaction and security attributes in the form of serialized Java classes. The spec describes the contracts between EJ Beans and containers, and promises to add container-server contracts. A typical application bean would consist of: • implementation classes • a remote interface; required by the spec RMI-style interfaces, the only public “face” of the bean • a home interface; also required, factory and finder methods • a deployment descriptor(DD) The responsibilities of container include generation of classes for access to the bean (EJB Object), for lifecycle operations (EJB Home), and possibly remote stubs. The spec also mentions the possibility of modification of the application code by the container at deployment time.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Database Access with EJB Application Servers Performance Study

Enterprise Java Beans (EJB) [6] is a server-side component architecture that simplifies the process of building enterprise-class distributed component applications in Java. This component technology originally proposed by SUN Microsystem is agreed upon by the industry, supports portability and rapid development of server side applications. EJB components (enterprise beans) are deployed within a...

متن کامل

Template Driven Performance Modeling of Enterprise Java Beans

System designers find it difficult to obtain insight into the potential performance, and performance problems, of enterprise applications based on component technologies like Enterprise Java Beans (EJBs) or .NET. One problem is the presence of layered resources, which have complicated effects on bottlenecks. Layered queueing network (LQN) performance models are able to capture these effects, an...

متن کامل

Developing Software Components with the UML, Enterprise Java Beans and Aspects

Component-based systems have become increasingly popular approaches to developing complex systems, offering well-formed abstractions, strong potential for reuse, dynamic plug-and-play and sometimes end-user application enhancement. Unfortunately the design, implementation and deployment of components is very challenging, particularly achieving appropriate division of responsibility among compon...

متن کامل

Integrating the Java 2 Enterprise Environment with Java Data Objects

Whenever object-oriented applications that use the Enterprise JavaBeans (EJB) environment have to store data in a database, there is a need to combine EJBs with access to persistent data. The current use of entity beans for persistent data storage has a number of weaknesses. Component level inheritance and dynamic querying are not supported appropriately, and the whole approach seems to be over...

متن کامل

Combining Agile Practices with UML and EJB: A Case Study in Agile Development

An agile methodology that integrates selected XP practices, UML modeling and Enterprise Java Beans is described. A case study in the domain of web-based systems is outlined, which applies and assesses the utility of the methodology. The applicability of agile modeling to the domain of webbased e-commerce systems implemented using Enterprise Java Beans is discussed.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998